const express = require("express");
const { createServer } = require("http");
const path = require("path");
const room = require("./room");

const app = express();
const server = createServer(app);

app.use(express.static(path.join(process.cwd(), "/public")));

room(server);

server.listen(3001, () => {
    console.log("server listen 3000.");
});
